package package2;

public class Method {
        public int x;
        static  void myMethod(){
        package2.Stats myObj1 = new package2.Stats();  // 创建Stats对象
        package2.Stats myObj2 = new package2.Stats();
        myObj1.x = 5;
        myObj2.x = 10;
        System.out.println("myObj1.x: " + myObj1.x);
        System.out.println("myObj2.x: " + myObj2.x);
    }
        public static void main(String[] args) {
            myMethod();
        }
    }
